<?php

namespace App\Models;

class FinanceSupplier extends XiamenBank
{
    public $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'register_callback_snapshot' => 'array',
    ];

    /**
     * 转账记录
     * @return \Illuminate\Database\Eloquent\Relations\MorphMany
     */
    public function transferRecord()
    {
        return $this->morphMany(FinanceTransferRecord::class, 'subject');
    }
}
